package com.zkthink.ceres.order.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/** 退款状态枚举类
 * -1-无退款 0-审核中 1-审核通过 2-审核不通过 3-退款中 4-退款完成 5-退款失败
 * @author JustArgo 2020/5/11 22:44
 * @return
 */
@Getter
public enum ReturnMoneyStatusEnum {

    NO_RETURN(-1,"无退款"),
    AUDITING(0,"审核中"),
    AUDIT_PASS(1,"审核通过"),
    AUDIT_REJECT(2,"审核不通过"),
    REFUNDING(3,"退款中"),
    REFUND_SUC(4,"退款完成"),
    REFUND_FAIL(5,"退款失败"),
    CANCELED(6,"撤销申请"),
    ;

    /** 代表处于以下状态，商户可以发货 或 用户可确认收货 */
    public static final List<Integer> CAN_OPERATE_STATUS = Arrays.asList(AUDIT_REJECT.getCode(),CANCELED.getCode());

    private int code;

    private String desc;

    ReturnMoneyStatusEnum(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

}
